package com.lab01;

import java.util.Scanner;

public class Excise02 {
    public String id;

    public static void main(String[] args) {
        Excise02 e = new Excise02();
        System.out.println("请输入18位身份证号码:");
        Scanner sc = new Scanner(System.in);
        String a=e.id = sc.nextLine();
        String y = a.substring(6,10);
        String m = a.substring(10,12);
        String d =a.substring(12,14);
        System.out.println("您的生日是："+y+"年"+m+"月"+d+"日");
    }
}

/*请输入18位身份证号码:
        411524200805063636
        您的生日是：2008年05月06日*/
